app.service('z-attendanceImport-s', [
			'$rootScope',
			'$z-http',
			'ZModel',
			function($rootScope, $http, ZModel) {
				var service = {
			            getTemplateUrl:function (success, fault) {
			                $http.get("attendance/downloadAttendanceURL.do", {
			                    headers: {
			                        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
			                    }
			                }).success(success).error(fault);
			            },
			            importAttendance:function (data, success, fault) {
			                $http.post("attendance/importAttendance.do",
			                    $.param(data), {
			                        headers: {
			                            'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
			                        }
			                    }).success(success).error(fault);
			            }
				};
				return service;
} ]);